package com.springcloud.dubbo_provider.service;

import com.springcloud.dubbo_api.service.HelloService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @Date: 2019/9/3
 * @Time: 21:55
 * @email: inwsy@hotmail.com Description:
 */
@DubboService
public class HelloServiceI implements HelloService {
    
    @Value("${name:韩美美}")
    private String name;
    
    @Value("${spring.cloud.client.ip-address}")
    private String ip;
    
    @Override
    public String hello(String name) {
        return "Hello " + name + " and " + this.name + ",provider-ip:" + ip;
    }
}
